package com.ByteDance.model.vo;

import com.ByteDance.utils.StatusConstant;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Setter;

@Data
public class FavoriteVO {
    @Setter(onMethod_ = {@JsonProperty("status_code")})
    @ApiModelProperty("状态码，0-成功，其他值-失败")
    private Integer statusCode;

    @Setter(onMethod_ = {@JsonProperty("status_msg")})
    @ApiModelProperty("状态描述")
    private String statusMsg;

    @Setter(onMethod_ = {@JsonProperty("video_list")})
    @ApiModelProperty("用户点赞视频列表")
    private Video[] VideoList;

    public static FavoriteVO success(){
        FavoriteVO favoriteVO = new FavoriteVO();
        favoriteVO.setStatusCode(StatusConstant.StatusEnum.SUCCESS.getCode());
        favoriteVO.setStatusMsg(StatusConstant.StatusEnum.SUCCESS.getMsg());
        return favoriteVO;
    }

    public static FavoriteVO fail(){
        FavoriteVO favoriteVO = new FavoriteVO();
        favoriteVO.setStatusCode(StatusConstant.StatusEnum.FAIL.getCode());
        favoriteVO.setStatusMsg(StatusConstant.StatusEnum.FAIL.getMsg());
        return favoriteVO;
    }
}
